package org.lds.logger.config.appender;

import org.lds.logger.config.filter.AbstractAppenderFilter;
import org.lds.logger.config.layout.Layout;

public class ConsoleAppender extends AbstractAppender {

    public ConsoleAppender() {
    }

    public ConsoleAppender(String name, int priority, AbstractAppenderFilter abstractAppenderFilter, Layout layout) {
        super(name, "console", priority, abstractAppenderFilter, layout);
    }

    public ConsoleAppender(String name, String destination, int priority, AbstractAppenderFilter abstractAppenderFilter, Layout layout) {
        super(name, destination, priority, abstractAppenderFilter, layout);
    }

    @Override
    protected void doAppend(String message) {
        System.out.print(message);
    }
}
